<template>
  <div id="app">
    <div class="movie-name">喵 喵 电 影</div>
    <header>
      <router-view name="header" />
    </header>
    <main>
      <router-view />
    </main>
    <footer>
      <router-view name="footer" />
    </footer>
  </div>
</template>
<script>
export default {
  name: 'App',
}
</script>

<style lang="less">
html,
body,
#app {
  height: 100%;
}
#app {
  display: flex;
  flex-direction: column;
  .movie-name {
    color: #fff;
    margin: 0;
    font-size: 22px;
    height: 90px;
    line-height: 90px;
    text-align: center;
    background: #e54847;
    z-index: 1;
  }
  main {
    flex: 1;
    overflow-x: hidden;
  }
}
</style>
